/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package model.creature.plant.plugin;

import java.awt.Image;
import model.creature.plant.MultiHarvestPlant;
import model.game.GameInterface;
import model.map.cell.PlantableCell;
import model.utility.ImageUtility;

/**
 * TomatoPlant plant that results from Baby TomatoPlant being planted
 * Grows every day if watered
 * Produces Baby TomatoPlant
 * Can be stepped on
 * Dies in 5 days
 */
public class Amoeba extends MultiHarvestPlant {

  public Amoeba(GameInterface game, PlantableCell cell) {
    super(game, cell);
  }

  @Override
  protected String getFruitName() {
    return "Baby Amoeba";
  }

  @Override
  protected int timeToMature() {
    return 1;
  }

  @Override
  protected int timeToDie() {
    return 5;
  }

  @Override
  protected int timeToHarvest(int harvest_count) {
    return 1;
  }

  @Override
  protected int getHPAtCurrentLevel() {
    return 100;
  }

  @Override
  public boolean canUpgrade() {
    if (getLevel() <= 1) {
      return true;
    }
    return false;
  }

  @Override
  public int getUpgradeCost() {
    return getLevel() * 50 + 50;
  }

  @Override
  public Image getImage() {
    if (is_seed_) {
      return ImageUtility.loadImage("resources/pictures/amoeba/baby_amoeba.png");
    } else {
      return ImageUtility.loadImage("resources/pictures/amoeba/mature_amoeba.png");
    }
  }

  @Override
  public String getName() {
    return "Amoeba";
  }

  @Override
  public String getSeason() {
    return game_.getGameTime().getCurrentSeason().getName();
  }

  @Override
  public String getDescription() {
    return "Strange gooey plant";
  }

}
